﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="MyLogin2.ascx.cs"
    Inherits="MyLogin" %>
<asp:Panel ID="pnl_Login" runat="server" Width="129px" CssClass="styleDangNhap">
    <asp:Login ID="Login1" runat="server" OnLoggingIn="Login1_LoggingIn" PasswordLabelText="Mật khẩu"
        PasswordRequiredErrorMessage="Yêu cầu nhập mật khẩu" UserNameLabelText="Tên đăng nhập"
        UserNameRequiredErrorMessage="Yêu cầu nhập Tên đăng nhập" BorderColor="#B5C7DE"
        BorderPadding="4" BorderStyle="Solid" BorderWidth="0px" Font-Names="Verdana"
        ForeColor="#333333" Width="129px">
        <TextBoxStyle Font-Size="0.8em" />
        <LoginButtonStyle BackColor="White" BorderColor="#7D7D7D" BorderStyle="Solid" BorderWidth="1px"
            Font-Names="Verdana" ForeColor="#284E98" />
        <LayoutTemplate>
            <table border="0" cellpadding="4" cellspacing="0" style="border-collapse: collapse;">
                <tr>
                    <td>
                        <table border="0" cellpadding="0" style="width: 129px;">
                                                  <tr>
                                <td>
                                    <asp:TextBox ID="UserName" runat="server" ToolTip="Username" 
                                        style="margin-bottom: 0px">Username</asp:TextBox>
                                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                        ErrorMessage="Yêu cầu nhập Tên đăng nhập" ToolTip="Yêu cầu nhập Tên đăng nhập"
                                        ValidationGroup="ctl00$Login1">*</asp:RequiredFieldValidator>
                                </td>
                                <td>
                                    <asp:CheckBox ID="RememberMe" runat="server" Text="?"/>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="Password" runat="server" TextMode="Password">Password</asp:TextBox>
                                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                        ErrorMessage="Yêu cầu nhập mật khẩu" ToolTip="Yêu cầu nhập mật khẩu" ValidationGroup="ctl00$Login1">*</asp:RequiredFieldValidator>
                                </td>
                                <td>
                                    <asp:Button ID="LoginButton" runat="server" BackColor="White" 
                                        BorderColor="#507CD1" BorderStyle="Solid" BorderWidth="1px" CommandName="Login" 
                                        Font-Names="Verdana" Font-Size="0.8em" ForeColor="#284E98" Height="26px" 
                                        Text="Log In" ValidationGroup="ctl00$Login1" onclick="Button1_Click" />
                                </td>
                                <tr>
                                    <td colspan="2" align="left">
                                        <asp:Literal ID="FailureText" runat="server" EnableViewState="False" Text=""></asp:Literal>
                                    </td>
                                </tr>
                               
                        </table>
                    </td>
                </tr>
            </table>
        </LayoutTemplate>
        <InstructionTextStyle Font-Italic="True" ForeColor="Black" />
        <TitleTextStyle BackColor="#507CD1" Font-Bold="True" Font-Size="0.9em" ForeColor="White" />
    </asp:Login>
</asp:Panel>
<asp:Panel ID="pnl_Logout" runat="server" Height="65px" Width="204px" 
    CssClass="styleDangNhap">
    <div align="center">
        <asp:HyperLink ID="hlUserName" runat="server">HyperLink</asp:HyperLink>
        <br />
        <asp:Button ID="btn_Logout" runat="server" Text="Logout" OnClick="btn_Logout_Click" />
    </div>
</asp:Panel>
<br />
